.material-icons-content {
  padding: 24px;
  max-width: 1400px;
}

h1 {
  color: #1976d2;
  margin-bottom: 16px;
  font-size: 2.5rem;
  font-weight: 300;
}

p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #1976d2;
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 500;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 8px;
}

.search-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;

  .search-field {
    width: 100%;
    max-width: 500px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  border-radius: 8px;
  color: white;
  transition: transform 0.2s ease;

  &:hover {
    transform: translateY(-2px);
  }

  mat-icon {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    opacity: 0.9;
  }

  .stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;

    .stat-number {
      font-size: 1.8rem;
      font-weight: 600;
      line-height: 1;
    }

    .stat-label {
      font-size: 0.9rem;
      opacity: 0.9;
    }
  }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 16px;

  p {
    color: #666;
    margin: 0;
  }
}

.pagination-info {
  margin-bottom: 16px;
  text-align: center;

  .page-range {
    color: #666;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
  }
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    transform: translateY(-2px);
  }

  &.mdi-icon {
    border-color: #4caf50;
    
    &:hover {
      border-color: #4caf50;
      box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    }
  }

  .icon-display {
    margin-bottom: 8px;

    .icon-material,
    .icon-svg {
      font-size: 2rem;
      width: 2rem;
      height: 2rem;
      color: #333;
    }
  }

  .icon-name {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
  }
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  mat-paginator {
    background: transparent;
  }
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;

  mat-icon {
    font-size: 4rem;
    width: 4rem;
    height: 4rem;
    color: #ccc;
    margin-bottom: 16px;
  }

  h3 {
    color: #666;
    margin-bottom: 8px;
  }

  p {
    color: #999;
    margin: 0;
  }
}

.usage-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.usage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  mat-icon {
    color: #1976d2;
    margin-top: 2px;
  }

  div {
    flex: 1;

    strong {
      color: #1976d2;
    }

    code {
      background: #f5f5f5;
      padding: 2px 6px;
      border-radius: 4px;
      font-family: 'Courier New', monospace;
      font-size: 0.9rem;
      color: #d32f2f;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .material-icons-content {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .icons-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }

  h1 {
    font-size: 2rem;
  }

  .usage-item {
    flex-direction: column;
    gap: 8px;
  }

  .pagination-container {
    padding: 12px;
    
    mat-paginator {
      ::ng-deep .mat-paginator-page-size {
        display: none;
      }
      
      ::ng-deep .mat-paginator-range-label {
        margin: 0 8px;
      }
    }
  }
}

@media (max-width: 480px) {
  .icons-grid {
    grid-template-columns: 1fr;
  }
}